package com.ossjk.qlh.tgb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ossjk.core.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @ClassName UserShoppingCart
 * @Description 用户购物车
 * @Author LZH
 * @Date 2022/1/18 15:31
 */
@ApiModel(value = "用户购物车")
@Data
public class UserShoppingCart extends BaseEntity<UserShoppingCart> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "用户id", required = true)
    @TableId("uid")
    private String uid;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id",required = true)
    @TableField("product_id")
    private String productId;

    /**
     * 商品参数
     */
    @ApiModelProperty(value = "商品参数",required = true)
    @TableField("param")
    private String param;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格",required = true)
    @TableField("price")
    private BigDecimal price;

    /**
     * 是否付款：1代表付款，0代表还未付款
     */
    @ApiModelProperty(value = "是否付款：1代表付款，0代表还未付款",required = true)
    @TableField("isPay")
    private Integer isPay;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量",required = true)
    @TableField("count")
    private Integer count;


}
